import request from '@/utils/request'

// 查询用户经历列表
export function listExperience(query) {
    return request({
        url: '/basic/experience/list',
        method: 'get',
        params: query
    })
}

// 查询用户经历详细
export function getExperience(id) {
    return request({
        url: '/basic/experience/' + id,
        method: 'get'
    })
}

// 新增用户经历
export function addExperience(data) {
    return request({
        url: '/basic/experience',
        method: 'post',
        data: data
    })
}

// 修改用户经历
export function updateExperience(data) {
    return request({
        url: '/basic/experience',
        method: 'put',
        data: data
    })
}

// 删除用户经历
export function delExperience(id) {
    return request({
        url: '/basic/experience/' + id,
        method: 'delete'
    })
}
